#!/bin/bash

count=`grep processor /proc/cpuinfo | wc -l`
runningProcess=`ps -e | wc -l`
openConnections=`lsof -i | wc -l`

echo CPU Count: $count
echo Running Processes: $runningProcess
echo Open Connections: $openConnections

if [ $count -eq 2 ]
then
  echo Sufficient Number of CPU's
fi